package com.bjbn.service.impl;

import com.bjbn.bean.entity.BaseAirway;
import com.bjbn.mapper.primary.BaseAirwayMapper;
import com.bjbn.service.AirwayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Slf4j
public class AirwayServiceImpl implements AirwayService {
    @Autowired
    private BaseAirwayMapper baseAirwayMapper;

    @Override
    @Transactional(transactionManager = "primaryTransactionManager")
    public List<BaseAirway> getAllAirway() {
        return baseAirwayMapper.selectList(null);
    }
}
